package com.xcq.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author CQ.Xi
 * @since 2022-10-20
 */
@Data
@TableName("cy_goods_sku")
@ApiModel(value = "GoodsSku对象", description = "")
public class GoodsSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品ID")
    @TableField("goodsId")
    private Integer goodsId;

    @ApiModelProperty("规格名称")
    private String title;

    @ApiModelProperty("SKU库存")
    private Integer num;

    @ApiModelProperty("商品售价")
    private Long price;

    @ApiModelProperty("商品属性，以逗号分隔")
    private String properties;

    @ApiModelProperty("条码")
    @TableField("barCode")
    private String barCode;

    @ApiModelProperty("商品码")
    @TableField("goodsCode")
    private String goodsCode;

    @ApiModelProperty("状态:1启用,0禁用")
    private Integer status;

    @TableField("createdAt")
    private LocalDateTime createdAt;

    @TableField("updatedAt")
    private LocalDateTime updatedAt;


}
